<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=0">
<script type="text/javascript" src="../common/js/jquery/jquery-1.8.3.min.js?ts=new Date()"></script>
<script type="text/javascript" src="../common/js/common/common.js?ts=new Date()"></script>
<title></title>
</head>

<body>
	<script language="javascript" type="text/javascript">
		//获得url参数
		function getParpam(name) {
			var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if(r!=null) return unescape(r[2]); return null;
		}
		
		$(function() {
			var state = '1';
			
			$.ajax({
				   type: "POST",
				   url: urlfile + "coreWechat/views",
				   data: "crwctUuid=161126131423yqiZ",
				   success: function(data){
				     window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?"+
				    		 "appid="+data.data.crwctAppid+
				    		 "&redirect_uri=http://show.hzlingdian.com/views/tuikebao/store/index.html?pageName=loginPage&response_type=code&scope=snsapi_base&state=" + state;
				   },
				   error: function() {
					   alert( "err");
				   }
			});
		})
		
		//var appid = getParpam('appid');
		//var state = getParpam('wechat') + '_' + getParpam('number');
	
		//window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appid+"&redirect_uri=http://tuikebao.hzlingdian.com/tuikebao/views/game/apply/views/audio/record.html&response_type=code&scope=snsapi_userinfo&state="+state+"&#wechat_redirect";
	</script>
</body>

</html>